package com.sun.app.process.front.activity;


import java.util.HashMap;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.sun.app.process.BaseProcess;

public class CreateActivityProcess extends BaseProcess{

	@Override
	public HashMap<String, Object> execute(HttpServletRequest request,
			HttpServletResponse response, HashMap<String, Object> model)
			throws Exception {
		List provinceList = getServMgr().getComboService().getProvice();
		List tipList = getServMgr().getComboService().getTip();
		model.put("tips", tipList);
		model.put("provices", provinceList);
		String userUID=(String) request.getSession().getAttribute("UID");
//		if(userUID==null){
//			
//		}
//		System.out.println("UID-->"+userUID);
//		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd-hh:mm");
//		System.out.println("121111111");
//		Calendar calendar = Calendar.getInstance();
//		int day=calendar.get(Calendar.DAY_OF_YEAR);
//		Date date = calendar.getTime();
//		Calendar runcalendar = Calendar.getInstance();
//		runcalendar.set(2000,1,12);
//		System.out.println("run"+sdf.format(runcalendar.getTime()));
//		int runday = runcalendar.get(Calendar.DAY_OF_YEAR);
//		runcalendar.set(Calendar.DAY_OF_YEAR, runday+30);
//		System.out.println("runAD"+sdf.format(runcalendar.getTime()));
//		calendar.set(Calendar.DAY_OF_YEAR, day+30);
//		calendar.set(Calendar.HOUR_OF_DAY,01);
//		Date dateadd=calendar.getTime();
//		System.out.println(date);
//		System.out.println(dateadd);
//		System.out.println("date:--->"+sdf.format(date));
//		System.out.println("dateadd:--->"+sdf.format(dateadd));
		return model;
	}
	
}
